package com.htu.edu.service.impl;

import com.htu.edu.bean.Food;
import com.htu.edu.mapper.FoodMapper;
import com.htu.edu.service.FoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class FoodServiceImpl implements FoodService {
    @Autowired
    private FoodMapper foodMapper;
    @Override
    public List<Food> listFoodByBusinessId(Integer businessId) throws Exception {
        return foodMapper.listFoodByBusinessId(businessId);
    }
}
